<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var name = "张三" ;
        var obj = {
            name:name,
            arr:[
                {
                    name:"李四",
                    age:30
                },{
                    name:"李四",
                    age:20
                },{
                    name:"李四",
                    age:28
                }
            ],
            fn:function(){
                console.log("fn");
            },
            fn1:function(){
                console.log("fn1");
            }
        } 
        let obj1 = {
            name,
            arr:[
                {
                    name:"李四",
                    age:30
                },{
                    name:"李四",
                    age:20
                },{
                    name:"李四",
                    age:28
                }
            ],
            fn(){
                console.log("fn");
            },
            fn:() => {console.log("fn");}
        }
        let{arr} = obj ;
        var newArr = arr.filter(item=>item.age>25);
        console.log(newArr);
    </script>
</body>
</html>